<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- 使用v-model在多个多选框中 使用数组收集数据 -->
        <input type="checkbox" v-model="hobbyList" value="打篮球">打篮球
        <input type="checkbox" v-model="hobbyList" value="唱跳rap">唱跳rap
        <input type="checkbox" v-model="hobbyList" value="敲代码">敲代码
        <input type="checkbox" v-model="hobbyList" value="打游戏">打游戏
    </div>
    <script>
        const vm = new Vue({
            data(){
                return{
                  hobbyList:[]
                }
            }
        }).$mount("#app")
    </script>
</body>

</html>